home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
20
/
9
/
DISK2092.ZIP
/
RBBS-LIT.ZIP
/
LIT
/
BASFFIND.LIT
< prev
next >
Wrap
Text File
|
1990-01-13
|
1KB
|
36 lines
*[BASFFIND.LIT]***************************************************************
* Description: Removes support for assembler file find *
* RBBS-PC Level: CPC17.3 √ AM *
* Module Affected: RBBSSUB1.BAS *
* Selection Option: ASMFFIND = OFF *
* Additional files: ASMFFIND.LIT *
******************************************************************************
20219 ' $SUBTITLE: 'FINDITX - subroutine to find if a file exists'
' $PAGE
'
' NAME -- FINDITX
'
' INPUTS -- PARAMETER MEANING
' FilName$ NAME OF FILE TO FIND
' FileNum # TO OPEN FILE AS ' KG061001
'
' OUTPUTS -- ZOK TRUE IF FILE EXISTS
' ZErrCode ERROR CODE
'
' PURPOSE -- Determine whether a file exists
'
SUB FINDITX (FilName$,FileNum) STATIC ' KG061001
ON ERROR GOTO 65000
ZErrCode = 0
ZOK = ZFalse
IF LEN(FilName$) < 1 THEN _
EXIT SUB
20221 CALL BadFileChar (FilName$,ZOK)
IF NOT ZOK THEN _
EXIT SUB
ZOK = ZFalse
NAME FilName$ AS FilName$
IF ZErrCode = 53 THEN _
ZErrCode = 0 : _ ' AC082901
EXIT SUB